﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TomNet.Core.Data;
using TomNet.IMSC.Model.Infrastructure;

namespace TomNet.IMSC.Model.DbModels.Finance
{
    /// <summary>
    /// 金融总流水
    /// </summary>
    public class FinanceRunnings : EntityBase<int>
    {
        /// <summary>
        /// 金融项ID
        /// </summary>
        public int FinanceItemsID { get; set; }
        /// <summary>
        /// 金融项名称
        /// </summary>
        [StringLength(50)]
        public string FinanceItemsName { get; set; }
        /// <summary>
        /// 中介ID
        /// </summary>
        public int IntermediaryID { get; set; }
        /// <summary>
        /// 中介名称
        /// </summary>
        [StringLength(50)]
        public string IntermediaryName { get; set; }
        /// <summary>
        /// 经纪人ID
        /// </summary>
        public int UserID { get; set; }
        /// <summary>
        /// 经纪人姓名
        /// </summary>
        [StringLength(50)]
        public string UserName { get; set; }
        /// <summary>
        /// 经纪人电话
        /// </summary>
        [StringLength(50)]
        public string UserPhone { get; set; }
        /// <summary>
        /// 客户ID
        /// </summary>
        public int CustomerID { get; set; }
        /// <summary>
        /// 客户姓名
        /// </summary>
        [StringLength(50)]
        public string CustomerName { get; set; }
        /// <summary>
        /// 客户电话
        /// </summary>
        [StringLength(50)]
        public string CustomerPhone { get; set; }
        /// <summary>
        /// 小区名称
        /// </summary>
        [StringLength(50)]
        public string BuildingName { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        [StringLength(255)]
        public string Address { get; set; }
        /// <summary>
        /// 面积
        /// </summary>
        public decimal Area { get; set; }
        /// <summary>
        /// 成交价
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 房主姓名
        /// </summary>
        [StringLength(50)]
        public string HouseOwnerName { get; set; }
        /// <summary>
        /// 房主电话
        /// </summary>
        [StringLength(50)]
        public string HouseOwnerPhone { get; set; }
        /// <summary>
        /// 报备时间
        /// </summary>
        public DateTime FilingTime { get; set; }
        /// <summary>
        /// 报备审核时间
        /// </summary>
        public DateTime FilingAuditingTime { get; set; }
        /// <summary>
        /// 报备审核操作员
        /// </summary>
        public int FilingAuditingStaffID { get; set; }
        /// <summary>
        /// 报备审核说明
        /// </summary>
        public string FilingAuditingRemark { get; set; }
        /// <summary>
        /// 报备状态  //1待审核   2审核通过   3审核未通过
        /// </summary>
        public int FilingState { get; set; }
        /// <summary>
        /// 收集资料类型 1上门取件    2自行送达
        /// </summary>
        public int CollectDataType { get; set; }
        /// <summary>
        /// 收集资料时间
        /// </summary>
        public DateTime CollectDataTime { get; set; }
        /// <summary>
        /// 收集资料操作员
        /// </summary>
        public int CollectDataStaffID { get; set; }
        /// <summary>
        /// 收集资料说明
        /// </summary>
        public string CollectDataRemark { get; set; }
        /// <summary>
        /// 收集资料状态  1未完成    2已完成
        /// </summary>
        public int CollectDataState { get; set; }
        /// <summary>
        /// 转交明细
        /// </summary>
        public int TransferDetailed { get; set; }
        /// <summary>
        /// 转交明细说明
        /// </summary>
        public string TransferDetailedRemark { get; set; }
        /// <summary>
        /// 进度
        /// </summary>
        public int Progress { get; set; }
        /// <summary>
        /// 状态  1正常  2异常   3完成
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 办件人员ID
        /// </summary>
        public int TransactStaffID { get; set; }
        /// <summary>
        /// 销售人员ID
        /// </summary>
        public int SellStaffID { get; set; }
        /// <summary>
        /// 金融备注
        /// </summary>
        public string Remark { set; get; }
        /// <summary>
        /// 代理商ID
        /// </summary>
        public int AgentID { get; set; }
    }
}
